package ziface

import "zinx_websokect_poker/zinx_app/poker_game/util"

type IOccupant interface {
	GetRoom() IRoom
	WriteMsg(msg interface{})
}
type ICreator interface {
	Create(interface{}) IRoom
}
type IRoom interface {
	Cap() uint8
	Len() uint8
	GetNumber() string
	SetNumber(string)
	Data() interface{}
	SetData(interface{})
	JoinRoom(interface{}, interface{}, int)
	ReJoinRoom(interface{}, int)
	LeaveRoom(interface{})
	Chat(interface{})
	SitDown(uint8, interface{})
	StartDelay(interface{})
	StandUp(interface{})
	GetRoomInfo(interface{})
	//ReqRound(int)
	SetSecondsTimer(timer *util.SecondsTimer)
	//Close(room IRoom)
	//Closed() chan struct{}
	//Send(IOccupant, interface{}) error
	WriteMsg(interface{}, ...uint32)
	//Regist(interface{}, interface{})


	//Info(args ...interface{})
	//Infof(format string, args ...interface{})
	//Error(args ...interface{})
	//Errorf(format string, args ...interface{})
}

